Skip to content

feat(ui): the Apex look in the console - #298

Merged
V3RON merged 4 commits into
task/276from
task/297
Oct 3, 2026
Merged

V3RON merged 4 commits into
task/276from
task/297

Conversation

@V3RON

@V3RON V3RON commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #297

The console now looks like Apex, with orange in place of Apex's green. A header holds the wordmark, the "By Callstack" chip, the connection box and Sign out. A tab bar replaces the sidebar. Each view has a page header, stat cards built from data it already loads, and its tables in panels. Long ids are cut with an ellipsis and keep the full id in title.

Two charts, drawn with Recharts and styled only by stylesheet classes:

  • Workers: "Leases, last hour" counts back from today's leases through the lease events, beside "Busiest workers".
  • Events: "Events per minute".

Each chart also gives its numbers as text: a summary line and a "Minute by minute" table. The CSP is unchanged. Recharts adds no <style> element and causes no violations.

A wide table stacks its rows under 1100px, so no column gets squeezed. DESIGN.md is rewritten for the new type, colour, components and layout.

A chart draws its focus ring only for keyboard focus (:focus-visible), not on a click; "clicking a chart shows no outline, tabbing to it does" proves it in all three browsers.

Done when

  • Every view matches the layout in light and dark. Checked against the maintainer's Apex screenshots. Screenshots are below: a two-worker fake-driver fleet at 1280px, plus sign-in and a worker's page and a lease's page.
  • No status uses orange. The status tokens are unchanged. --accent is used only by the wordmark, the tab underline, buttons, links, focus, the radio accent and the charts (checked by grepping styles.css).
  • The browser lane passes in Chromium, Firefox and WebKit. pnpm test:console passed 201 of 201 locally, and that includes the new views.spec.ts.
View Light Dark
Sign in
Workers
A worker
Leases
A lease
Waiting
Attention
Events

Review

Spec review: 23 findings over two rounds, 3 fixed. Code review: 19 findings over two rounds, 16 fixed.

Spec needs: CONSOLE.md to describe the stat cards and charts. The spec allowed CONSOLE.md edits only for layout details, but the code review asked for these under "the PR updates the docs it makes true". The rules win.

Rejected:

  • The header's connection box shows no colour. Wrong: Status draws the colour square beside the word. The box only moved.
  • The tab-bar unit tests pass the current tab and the count by hand. True, but the browser lane covers the wiring: "the tab bar moves between views…", and the count on the Attention tab in attention.spec.ts.
  • skipLibCheck was not asked for. It is needed: Recharts pulls in Redux Toolkit, whose declarations fail under exactOptionalPropertyTypes. The console's own code is still checked.
  • react-is was not asked for. It is Recharts' peer dependency.
  • ARCHITECTURE.md was edited. Its line on the events feed had become false.
  • The lease history clamps at 0. A negative lease count can never be true.
  • The walk-back covers only the newest 1000 events. That is the feed's documented limit, and the spec puts history beyond it out of scope.
  • The sign-in card gained a one-line description. The panel style gives every card a header description.
  • The tests for the zero clamp and for the highest and lowest minute go beyond the spec. They cover code the diff adds (testing.md).
  • The keyboard test skips the header and tabs. The shell's keyboard test walks those.
  • The chart can dip for a moment between a stream event and the /v1/workers refetch. It lasts until that refetch, within a second, as ADR 0013 accepts.
  • The screenshots and the three-browser run are not in the diff. They are in this body.

Written by an agent.

V3RON added 3 commits October 3, 2026 10:08
A header with the wordmark and the connection, a tab bar in place of the
sidebar, and in each view a page header, stat cards and panels. The
workers view charts the last hour's leases and the events view the events
per minute, with Recharts, under the same CSP. DESIGN.md describes the
new type, colour, components and layout.

Refs #297
Prove the stat cards and both charts in the browser, wait for the
events before drawing the lease history, cut an unlabelled worker's id
in the lease table, keep every table inside its panel with a fixed
layout, and describe the cards and charts in CONSOLE.md.
Stack a wide table's rows under 1100px, so no column is squeezed to a
few pixels, and prove a lease id stays readable at 1280, 1024, 768 and
360px. Name a lease's worker by the one rule the details page uses,
prove the current minute holds a lease stamped past the view's now and
that a device id is counted per worker, and say in CONSOLE.md that a
lease ending with no event is not counted back.
@V3RON
V3RON added this pull request to stack #292 October 3, 2026 08:38
A click on a chart drew the ring round it. The ring now follows
:focus-visible, so Tab still shows it and the arrow keys still step
through the chart.
@V3RON
V3RON merged commit 5860bf6 into main Oct 3, 2026
24 checks passed
@V3RON
V3RON deleted the task/297 branch November 6, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console: the Apex look

1 participant